package com.ciis.system.relation.mapper;

import com.ciis.system.relation.domain.TSysUserRole;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: zhangdajun
 * Date: 14-6-1
 * Time: 下午10:05
 * To change this template use File | Settings | File Templates.
 */
@Repository("userRoleMapper")
public interface ITSysUserRoleMapper {

    public void save(TSysUserRole userRole) throws Exception;

    public void delete(TSysUserRole userRole) throws Exception;

    public void deleteByUId(String userId) throws Exception;

    public List<TSysUserRole> getUserRolesByUId(String userId) throws Exception;

    public List<TSysUserRole> getUserRolesByRId(String roleId) throws Exception;

}
